package com.example.demo.Switch;

import com.example.demo.Service.AdminlengService;
import com.example.demo.config.SetMsgConfig;
import com.example.demo.entity.GetMsgVo;
import love.forte.simbot.api.message.events.PrivateMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PrivateSwitchController extends SetMsgConfig {

    @Autowired
    private AdminlengService adminlengService;

    public String userTake(PrivateMsg msg)
    {
        GetMsgVo getMsgVo=getMsgVo(msg);
        return adminlengService.userGet(getMsgVo);
    }
}
